<%--
  Created by cofey on 16/11/20.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<c:forEach items="${items}" varStatus="idex" var="item">
    <tr>
        <td align="center">${idex.count}</td>
        <td>${item.area}</td>
        <td>${item.hotspotName}</td>
        <td>${item.apIndex}</td>
        <td>${item.mobile}</td>
        <td>${item.ip}</td>
        <td>${item.mac}</td>
        <td><fmt:formatDate value="${item.requetTime}" pattern="yyyy-MM-dd HH:mm"/></td>
        <td><fmt:formatDate value="${item.sendTime}" pattern="yyyy-MM-dd HH:mm"/></td>
        <td><fmt:formatDate value="${item.upTime}" pattern="yyyy-MM-dd HH:mm"/></td>
        <td><fmt:formatDate value="${item.downTime}" pattern="yyyy-MM-dd HH:mm"/></td>
    </tr>
</c:forEach>
<script type="text/javascript">
    $(function () {
        var totalElements = parseInt('${total}');
        var pageIndex = parseInt('${pageIndex}');
        var pageSize = parseInt('${pageSize}');
        page.init(totalElements, pageIndex, pageSize, config.pagebar, function () {
            config.loadContent();
        });
    });
</script>